﻿using Microsoft.EntityFrameworkCore;
using System;
using Volo.Abp.MultiTenancy;
using Xms.Abp.Data;
using Xms.Abp.Storage;

namespace BackgroundJobManagement;

[IgnoreMultiTenancy]
[DynamicConnStringName(typeof(BackgroundJobManagementDbProperties), nameof(BackgroundJobManagementDbProperties.ConnectionStringName))]
public class BackgroundJobManagementStorage : XmsStorage<BackgroundJobManagementStorage>, IBackgroundJobManagementStorage
{
    public DbSet<BackgroundJobEntity> BackgroundJobs { get; set; }

    public DbSet<BackgroundScheduleEntity> BackgroundSchedules { get; set; }

    public BackgroundJobManagementStorage(DbContextOptions<BackgroundJobManagementStorage> options, IServiceProvider serviceProvider)
        : base(options, serviceProvider)
    {

    }
}
